import Detect, { BodyState } from '../utils/Detect';

interface TrainProps {
  setBodyState: (state: BodyState) => void;
}

const Train = (props: TrainProps) => {
  const { setBodyState } = props;
  return (
    <div>
      <Detect setBodyState={setBodyState} />
    </div>
  );
};

export default Train;
